html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  'Noto Color Emoji';
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  font-size: 14px; /* 减小全局字体大小 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}


:where(.css-dev-only-do-not-override-jcwvac).ant-btn {
  font-size: 14px !important;
}

a:where(.css-dev-only-do-not-override-jcwvac).ant-typography-ellipsis-single-line, span:where(.css-dev-only-do-not-override-jcwvac).ant-typography-ellipsis-single-line {
  font-size: 14px !important;
}

.ant-select-dropdown {
  max-height: 300px;
  overflow-y: auto;
}

.ant-select-item-option-content {
  white-space: normal;
  word-break: break-all;
  line-height: 1.5;
  padding: 4px 0;
}

.ant-form-item {
  margin-bottom: 16px !important;
}

.ant-drawer-body {
  .ant-form-item-control-input-content {
    .ant-select {
      width: 100% !important;
    }
  }
}


// 紧凑布局容器
.protable-compact-wrapper {
  // 1. 压缩搜索表单间距
  .ant-pro-table-search {
    margin-bottom: 0;
    padding-bottom: 0;

    // 压缩表单项间距
    .ant-form-item {
      margin-bottom: 0px !important; // 比默认 16px 更紧凑
    }

    // 压缩搜索按钮间距
    .ant-pro-table-search-option {
      margin-bottom: 0px;
    }
  }

  // 2. 移除表格与搜索表单之间的间距
  .ant-pro-table > div > .ant-table-wrapper {
    margin-top: 0 !important;
  }

  // 3. 压缩表格行高
  .ant-table {
    // 表头高度压缩
    .ant-table-thead > tr > th {
      padding: 8px 12px !important;
    }

    // 表格内容行高压缩
    .ant-table-tbody > tr > td {
      padding: 4px 8px !important; // 比默认 16px 更紧凑
    }

    // 紧凑行高（默认 54px → 压缩至 36px）
    .ant-table-row {
      line-height: 1.2;
      height: 32px;
    }
  }

  // 4. 分页器紧凑模式
  .ant-pagination {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
  }
}
